package com.dxj1992.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2022-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserAssetFlow implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 子类型
     */
    private Integer subType;

    /**
     * 交易单号
     */
    private String tradeNo;

    /**
     * 发生金额
     */
    private BigDecimal amount;

    /**
     * 金额
     */
    private BigDecimal balance;

    /**
     * 冻结金额
     */
    private BigDecimal frozen;

    /**
     * 累计充值
     */
    private BigDecimal totalRecharge;

    /**
     * 累计提现
     */
    private BigDecimal totalWithdraw;

    /**
     * 累计扣款
     */
    private BigDecimal totalConsume;

    /**
     * 累计支出
     */
    private BigDecimal totalExpend;

    /**
     * 累计收入
     */
    private BigDecimal totalIncome;

    /**
     * 累计退款
     */
    private BigDecimal totalRefund;

    /**
     * 备注说明
     */
    private String remark;

    /**
     * 日期
     */
    private LocalDate date;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private String flowableType;

    private Long flowableId;


}
